﻿<%@ Page Title="" Language="C#" MasterPageFile="~/_page.Master" AutoEventWireup="true" CodeBehind="Home.aspx.cs" Inherits="SmartSpace.WebApp.Modules.Common.Pages.Home" %>

<%@ Register Src="~/Modules/OA/Parts/ClockInPart.ascx" TagPrefix="uc1" TagName="ClockInPart" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitle" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBody" runat="server">
    <div style="padding: 5px;">
        <table style="width: 100%;" cellspacing="0" cellpadding="0">
            <tr>
                <td style="width: 70%; vertical-align: top;">
                    <div style="height:66px;">
                        <a href="<%=this.ResolveClientUrl("~/Modules/OA/Pages/WorkLog-Write.aspx") %>" style="display:block; float:left; height:36px; width:64px; padding-top:28px; text-align:center; border:1px solid blue" target="_new">
                            填写日志
                        </a>
                        <a href="#" style="display:block; float:left; height:36px; width:64px; padding-top:28px; text-align:center; border:1px solid blue; margin-left:5px;" target="_new">
                            填写工作计划
                        </a>
                    </div>
                    <div class="ss-box" style="margin-top: 5px;">
                        <h1>公告列表
                        </h1>
                        <div class="ss-box-content">
                            <table style="width: 100%;" cellspacing="0" cellpadding="0" class="ss-list">
                                <tr>
                                    <th>标题
                                    </th>
                                    <th style="width: 150px;">时间
                                    </th>
                                </tr>
                                <asp:Repeater ID="_ctlListNotice" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <a href="<%#this.ResolveClientUrl(Eval("Id","~/Modules/OA/Pages/Article-View.aspx?Id={0}")) %>" target="_blank">
                                                    <%#Eval("Title") %>
                                                </a>
                                            </td>
                                            <td>
                                                <%#Eval("CreatedDate") %>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </div>
                    </div>

                    <div class="ss-box" style="margin-top: 5px;">
                        <h1>任务列表
                        </h1>
                        <div class="ss-box-content">
                            <table style="width: 100%;" cellspacing="0" cellpadding="0" class="ss-list">
                                <tr>
                                    <th style="width: 90px;">模块
                                    </th>
                                    <th>标题
                                    </th>
                                    <th style="width: 120px;">发送人
                                    </th>
                                    <th style="width: 150px;">时间
                                    </th>
                                </tr>
                                <asp:Repeater ID="_ctlListTask" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%# Eval("RefModule") %>
                                            </td>
                                            <td>
                                                <a href='<%# this.ResolveClientUrl(Eval("RefModule","~/Modules/Workflow/Pages/Workflow-View.aspx?refmodule={0}")+Eval("RefId","&refid={0}")) %>' target="_blank">
                                                    <%# Eval("Caption") %>
                                                </a>
                                            </td>
                                            <td>
                                                <%# Eval("Sender") %>
                                            </td>
                                            <td>
                                                <%# Eval("SendedDate") %>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                        </div>
                    </div>
                    <div class="ss-box" style="margin-top: 5px;">
                        <h1>本月考勤情况
                        </h1>
                        <div id="_ctlCalendarContainer" class="ss-box-content" runat="server">
                        </div>
                    </div>
                </td>
                <td style="width: 30%; vertical-align: top; padding-left:5px;">
                    <div>
                        <uc1:ClockInPart runat="server" id="ClockInPart" />
                    </div>
                    <div class="ss-box" style="margin-top: 5px;">
                        <h1>个人能力
                        </h1>
                        <div class="ss-box-content">
                            <table style="width: 100%;">
                                <tr>
                                    <td style="text-align: center; vertical-align: middle">
                                        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="128px" height="128px">
                                            <param name="source" value="<%=this.ResolveClientUrl("~/Components/Silverlight/SmartSpace.Silverlight.EAPD.xap") %>" />
                                            <param name="onError" value="onSilverlightError" />
                                            <param name="background" value="white" />
                                            <param name="minRuntimeVersion" value="5.0.61118.0" />
                                            <param name="autoUpgrade" value="true" />
                                        </object>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="ss-box" style="margin-top: 5px;">
                        <h1>建设中.
                        </h1>
                        <div class="ss-box-content">
                            <br />
                            <br />
                            <br />
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
